package com.Pan.util;

/**
 * @Description: 响应状态
 * @Author: zhangjie
 * @Date: 16/8/18 AM9:43
 */
public enum StatusCode {

	/** 成功 */
	SUCCESS("0","success"),

	/** 系统异常 */
	SYS_ERROR("-10000","系统异常"),

	/** 处理失败 */
	FAILED("-10001","处理失败"),

	/** 参数异常 */
	PARAM_ERROR("-11001","参数异常"),

	/** 客户端时间与服务器时间不一致 */
	APP_DATE_ERROR("-11002","客户端时间与服务器时间不一致"),

	/** 无权限访问 */
	AUTHORITY("-12001","无权限访问"),

	/** 访问次数超限 */
	REQUEST_MORE_COUNT("-12002","访问次数超限"),

	COMPANYID_EMPTY("-13001", "companyId为空"),

	TASKID_NOT_EXIST("-13002", "taskId不存在"),

	ENTERPRISEID_TASKID_QUESTIONID_NOT_CORRECT("-13003", "企业id与任务id、问题id不匹配"),

	BUSINESSDATAPARAMLIST_COMPANYID_NOT_CORRECT("-13004", "根据businessDataParamList和companyId查询不到responseId"),

	REPEATED_RESPONSEID("-13005", "responseId禁止重复提交"),

	RESPONSE_NOT_EXIST("-13006", "答卷不存在"),

	DO_NOT_NEED_TO_RECOGNIZE("-13007", "该任务不需要识别"),

	IN_RECOGNIZE("-13008", "正在识别中"),

	RESPONSEID_EMPTY("-13009", "responseId为空"),

	NEED_REMAKE_TASKID_NOT_EXIST("-13010", "该任务未配置需要单独跑翻拍"),

	QUESTION_IS_NULL("-13011", "问题为空"),

	RECALL_TIMEOUT("-13012", "对不起，此门店已超出撤回时间"),

	CONTAINS_SPECIAL_CHARACTERS("-13013", "您输入的内容包含特殊字符，请重新输入"),

	NOT_SET_TARGET_PRODUCT("-14001", "未设置识别目标"),

	NOT_ALLOW_REPEAT_RECALL("-13014","该任务已在另一设备被撤回");

	private String code;
	private String desc;
 
	public String getCode() {
		return code;
	}
 
	public void setCode(String code) {
		this.code = code;
	}
 
	public String getDesc() {
		return desc;
	}
 
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	private StatusCode(String code, String desc){
		this.code = code;
		this.desc = desc; 
	}

}
